// importM
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('你好Flutter')),
        body: const MyApp(),
      ),
    ),
  );
}

// 代码块 statelessW
class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text(
        '你好Flutter',
        textDirection: TextDirection.ltr,
        style: TextStyle(fontSize: 40, color: Colors.red),
      ),
    );
  }
}
